package
{
	import flash.display.GradientType;
	import flash.display.Graphics;
	import flash.geom.Matrix;
	
	import mx.core.mx_internal;
	import mx.graphics.LinearGradientStroke;


	public class LinearGradientStroke extends mx.graphics.LinearGradientStroke
	{
		public function LinearGradientStroke(weight:Number=0, pixelHinting:Boolean=false, scaleMode:String="normal", caps:String=null, joints:String=null, miterLimit:Number=0)
		{
			super(weight, pixelHinting, scaleMode, caps, joints, miterLimit);
		}
		
    public override function apply(g:Graphics):void
    {
        g.lineStyle(weight, 0, 1, pixelHinting, scaleMode,
                    caps, joints, miterLimit);

		var m:Matrix = null//new Matrix(0,0,0,1,0,0);
        
        g.lineGradientStyle(GradientType.LINEAR, mx_internal::colors,
                            mx_internal::alphas, mx_internal::ratios,
                            m, spreadMethod,
                            interpolationMethod);
    }
		
		
	}
}